package dao;

import bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenpeng
 * @date 2018/5/20 17:12
 */
public interface EmployeeMapperDynamicSQL {
    //携带了那个字段查询条件就带上这个字段的值
    List<Employee> getEmpsByConditionIfAndWhere(Employee employee);

    List<Employee> getEmpsByConditionTrim(Employee employee);

    List<Employee> getEmpsByConditionChoose(Employee employee);

    void updateEmp(Employee employee);

    List<Employee> getEmpsByConditionForeach(List<Integer> ids);

    void addEmps(@Param("emps") List<Employee> employees);

    List<Employee> getEmpsTestInnerParameter(Employee employee);
}
